/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.cardarus.operatingsystem.struts.forms;

/**
 * This class holds the data from the Checkout.jsp form.
 * @author Javier Snaider
 */
public class CheckoutForm extends org.apache.struts.validator.ValidatorForm {
    /**
     * the id of the item to add in the row.
     */
    private int itemId;
    /**
     * The quantity of Item to add.
     */
    private int quantity;
    /**
     * The selected rows to delete.
     */
    private String[] selectedRows = {};

    /**
     * @return the itemId
     */
    public int getItemId() {
        return itemId;
    }

    /**
     * @param itemId the itemId to set
     */
    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    /**
     * @return the quantity
     */
    public int getQuantity() {
        return quantity;
    }

    /**
     * @param quantity the quantity to set
     */
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    /**
     * @return the selectedRows
     */
    public String[] getSelectedRows() {
        return selectedRows;
    }

    /**
     * @param selectedRows the selectedRows to set
     */
    public void setSelectedRows(String[] selectedRows) {
        this.selectedRows = selectedRows;
    }

}
